package com.agileboot.domain.bot.botQuestion.db;

import com.agileboot.common.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p> bot_question 表实体 </p>
 */
@TableName("bot_question")
@ApiModel(value = "BotQuestionEntity对象", description = "问答表")
@Data
public class BotQuestionEntity extends BaseEntity<BotQuestionEntity> implements Serializable {

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("问题")
    @TableField("question")
    private String question;

    @ApiModelProperty("答案")
    @TableField("answer")
    private String answer;

    @ApiModelProperty("创建用户")
    @TableField("create_user")
    private String createUser;

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    // Getter / Setter 略（Lombok 或 IDE 自动生成）收到
}
